class Person{
    //属性
    public String name;
    public int age;

    //行为方法
    //睡觉
    public void sleep() {

    }
    //吃饭
    public void eat() {

    }
}
class Dog{
    public String name;  //姓名
    public String color;  //颜色

    public void barks() {
        System.out.println("汪汪叫~");
    }
    public void wag() {
        System.out.println("摇尾巴~");
    }
}
public class Test {
    public static void main(String[] args) {
        Dog dog1 = new Dog();  //实例化
        dog1.name = "阿黄";
        dog1.color = "黄色";
        System.out.println(dog1.name);
        System.out.println(dog1.color);
        dog1.barks();
        dog1.wag();
        System.out.println("========================");
        Dog dog2 = new Dog();
        dog2.name = "阿黑";
        dog2.color = "黑色";
        System.out.println(dog2.name);
        System.out.println(dog2.color);
        dog2.barks();
        dog2.wag();
    }
}
